package com.stedu.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Owner {

    //住户id
    @ExcelProperty("主键")
    private Integer oid;
    //住户姓名
    @ExcelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String oname;
    //住户性别
    @ExcelProperty("性别")
    private String ogender;
    //用户电话
    @ColumnWidth(20)
    @ExcelProperty("联系方式")
    @NotBlank(message = "联系方式不能为空")
    private String ophone;
    //用户住址
    @ColumnWidth(50)
    @ExcelProperty("住址")
    @NotBlank(message = "住址不能为空")
    private String address;
}
